package com.ruoyi.system.service;

import java.util.List;

import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.system.domain.Appmanager;
import com.ruoyi.system.domain.Buildinfo;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 楼栋信息Service接口
 * 
 * @author yaozh
 * @date 2024-03-04
 */
public interface IBuildinfoService 
{
    /**
     * 查询楼栋信息
     * 
     * @param buildid 楼栋信息主键
     * @return 楼栋信息
     */
    public Buildinfo selectBuildinfoByBuildid(Long buildid,String dbName);

    /**
     * 查询楼栋信息列表
     * 
     * @param buildinfo 楼栋信息
     * @return 楼栋信息集合
     */
    public List<Buildinfo> selectBuildinfoList(Long[] appIds,Buildinfo buildinfo,String dbName);

    /**
     * 新增楼栋信息
     * 
     * @param buildinfo 楼栋信息
     * @return 结果
     */
    public int insertBuildinfo(Buildinfo buildinfo,String dbName);

    /**
     * 修改楼栋信息
     * 
     * @param buildinfo 楼栋信息
     * @return 结果
     */
    public int updateBuildinfo(Buildinfo buildinfo,String dbName);

    /**
     * 批量删除楼栋信息
     * 
     * @param buildids 需要删除的楼栋信息主键集合
     * @return 结果
     */
    public int deleteBuildinfoByBuildids(Long[] buildids,String dbName);

    /**
     * 删除楼栋信息信息
     * 
     * @param buildid 楼栋信息主键
     * @return 结果
     */
    public int deleteBuildinfoByBuildid(Long buildid,String dbName);

    public Long[] listAppIds(LoginUser loginUser, String dbName);

    public List<Appmanager> getAppManagerList(LoginUser loginUser, String dbName);
}
